package com.genius.smsweb.dormitorymanage;

import com.genius.smsbase.Controller.GenericController;
import com.genius.smsdao.dormitorymanage.domain.Dormitory;
import com.genius.smsservice.dormitorymanage.service.DormitoryManager;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(tags = "宿舍管理-宿舍", description = "DormitoryController")
@RestController
@RequestMapping(value = "dormitory")
public class DormitoryController extends GenericController<Dormitory,Long, DormitoryManager> {

    DormitoryManager dormitoryManager;

    /**
     * setDormitoryManager
     * @param dormitoryManager
     */
    @Autowired
    public void setDormitoryManager(DormitoryManager dormitoryManager){
        this.dormitoryManager = dormitoryManager;
        this.manager = this.dormitoryManager;
    }

}
